<table class="tablesorter">
	<thead>
		<tr>
			<th class="selectAll"><?php echo $this->formCheckbox( 'selectAll' )?></th>
			<th class="<?php echo $this->order( 'reasonId' )?> reasonId">reasonId</th>
			<th class="<?php echo $this->order( 'name' )?> name">name</th>
			<th class="<?php echo $this->order( 'reasonFamilyId' )?> reasonFamilyId">reasonFamilyId</th>
			<th class="<?php echo $this->order( 'positive' )?> positive">Voto positivo</th>
		</tr>	
	</thead>
	<tbody>
	<?php 
		$this->partialLoop()->setObjectKey('reason');
		echo $this->partialLoop('reasons/partial-reason.phtml', $this->reasons);
	?>	
	</tbody>
	<tfoot>
		<tr>
			<th colspan="5">
			<span class="totalItems"><?php echo $this->totalItems?> <?php echo $this->totalItems == 1 ? 'reason': 'reasons'?></span>
			<?php 
			
			echo $this->paginationControl(
					$this->paginator,
					'Sliding',
					'paginatorControl.phtml'); 
			?>
			</th>		
		</tr>	
	</tfoot>
</table>